<project>
    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>com.google.cloud.tools</groupId>
                    <artifactId>jib-maven-plugin</artifactId>
                    <version>3.2.1</version>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <groupId>com.google.cloud.tools</groupId>
                <artifactId>jib-maven-plugin</artifactId>
                <configuration>
                    <allowInsecureRegistries>true</allowInsecureRegistries>
                    <from>
                        <image>docker.io/bitnami/java:1.8-prod</image>
                    </from>
                    <to>
                        <!--<image>${imageName}</image>-->
                        <!--<tags>-->
                        <!--    <tag>latest</tag>-->
                        <!--</tags>-->
                    </to>
                    <container>
                        <!--<mainClass>${mainClass}</mainClass>-->
                        <entrypoint>/bin/bash,/app/run.sh</entrypoint>
                        <ports>
                            <port>8080</port>
                        </ports>
                    </container>
                    <extraDirectories>
                        <paths>
                            <path>
                                <from>src/main/jib</from>
                                <into>/app</into>
                            </path>
                        </paths>
                    </extraDirectories>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>